import com.interactiveAlchemy.utils.Debug;
import com.drunkencop.SamplePreloader;
import com.drunkencop.FlashCacher;

			class Main 
			{

	private static var _stage : MovieClip;

				public static function main()
				{
					trace("SUCCESS2");
					_root.lineStyle( 1, 0x0000ff, 100);
					_root.moveTo(0,0);
					_root.lineTo(200,200);
					_stage = _root;
					var s:SamplePreloader = new SamplePreloader( _stage );
					var fc:FlashCacher = new FlashCacher();
					fc.setCallback( Delegate.create( s, s.onLoadProgressHandler ) );
					fc.setDoneCallback( Delegate.create( s, s.onDoneHandler ) );
					fc.load( "preloadcache.xml" );
				}
				
				public static function myTrace( msg:String, classname:String, filename:String, linenumber:String)
				{
					Debug.write( msg + ", " + classname + "\n");	
				}
				
			}
		